package vamp
/**
 * The vamp_serviceweb.Vehicle entity.
 *
 * @author    
 *
 *
 */
class Vehicle {
    static mapping = {
         table 'vehicle'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'idvehicle'
         status column:'idstatus'
         constructor column:'idconstructor'
    }
    String description
    String model
    Integer year
    String imguri
    // Relation
    Status status
    // Relation
    Constructor constructor

    static constraints = {
        description(blank: false)
        model(blank: false)
        year()
        imguri()
        status()
        constructor()
    }
    String toString() {
        return "${id}"
    }
}
